<?php include atemplate('header');?>
<script src="/ckeditor/ckeditor.js"></script>
<table width="96%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="30" align="left" bgcolor="#B51C00"> 　<span class="STYLE8">账号管理</span></td>
  </tr>
</table>
<br />
<form action="/admin/index.php?do=system" method="post">
<table width="740" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td width="100" height="30" align="center">原有密码：</td>
    <td colspan="3" align="left"><input type="password" name="old_password" id="old_password" /></td>
  </tr>
  <tr>
    <td height="30" align="center">重置密码：</td>
    <td colspan="3" align="left"><input type="password" name="password" id="password" /></td>
  </tr>
  <tr>
    <td height="30" align="center">确认密码：</td>
    <td colspan="3" align="left"><input type="password" name="password1" id="password1" />
    <input type="hidden" name="ac" value="password" />
      <input type="submit" id="button" value="提交" /></td>
  </tr>
</table>
</form>
<br />
<br />
<table width="96%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td height="30" align="left" bgcolor="#B51C00">　<span class="STYLE8">系统配置</span></td>
  </tr>
</table>
<br />
<form action="/admin/index.php?do=system" method="post">
<table width="740" border="0" cellspacing="0" cellpadding="0">
 <tr>
    <td width="150" height="30" align="center">开始时间</td>
    <td align="left">
	<input type="text" name="starttime" id="starttime"/>
	<link rel="stylesheet" type="text/css" href="../js/calendar/calendar-blue.css"/>
	<script type="text/javascript" src="../js/calendar/calendar.js"></script>
	<script language="javascript" type="text/javascript">
		date = new Date();document.getElementById ("starttime").value="<?php echo $_CONFIG['starttime'];?>";
		Calendar.setup({inputField: 'starttime',ifFormat: '%Y-%m-%d',showsTime: 'false',timeFormat: '24'});
	</script>
	</td>
  </tr>
 <tr>
    <td width="150" height="30" align="center">结束时间</td>
    <td align="left">
	<input type="text" name="endtime" id="endtime"/>

	<script language="javascript" type="text/javascript">
		date = new Date();document.getElementById ("endtime").value="<?php echo $_CONFIG['endtime'];?>";
		Calendar.setup({inputField: 'endtime',ifFormat: '%Y-%m-%d',showsTime: 'false',timeFormat: '24'});
	</script>
	</td>
  </tr>
  <tr>
    <td width="150" height="30" align="center">灯谜每天显示数量：</td>
    <td align="left"><input type="text" name="guessallnum" id="guessallnum" value="<?php echo $_CONFIG['guessallnum'];?>" /></td>
  </tr>
  <tr>
    <td height="30" align="center">灯谜每天简单题数量：</td>
    <td align="left"><input type="text" name="guesssimplenum" id="guesssimplenum" value="<?php echo $_CONFIG['guesssimplenum'];?>" /></td>
  </tr>
  <tr>
    <td height="30" align="center">邮件发送服务器：</td>
    <td align="left"><input type="text" name="server" id="server" value="<?php echo $_CONFIG['server'];?>" /></td>
  </tr>
  <tr>
    <td height="30" align="center">用户账号：</td>
    <td align="left"><input type="text" name="email" id="email" value="<?php echo $_CONFIG['email'];?>"/></td>
  </tr>
  <tr>
    <td height="30" align="center">用户密码：</td>
    <td align="left"><input type="password" name="password" id="password" value="<?php echo $_CONFIG['password'];?>"/>
    <input type="hidden" name="ac" value="sendmail" />
     </td>
  </tr>
  
</table>
<table width="740" border="0" cellspacing="0" cellpadding="0">
  <tr>
	<td width="150" height="30" align="center">邮件标题：</td>
	<td align="left" colspan=2><input type="text" name="mailtitle" id="mailtitle" value="<?php echo $_CONFIG['mailtitle'];?>"> </td>
  </tr>
  <tr>
	<td width="150" height="30" align="center">邮件内容：</td>
	<td align="left" width="400"><textarea name="mailcontent" id="mailcontent" cols=30><?php echo $_CONFIG['mailcontent'];?></textarea>
	<script type="text/javascript">
	CKEDITOR.replace( 'mailcontent',{toolbar : 'Basic'} );
</script></td>
    <td  align="left" style="color:red;padding-left:5px">变量声明 <br/>{$id} 祝福编号<br/>{$title} 祝福标题 <br/>{$receiveuser} 祝福接收人 <br/>{$senduser} 祝福发送人 <br/>{$content} 祝福内容 <br/>{$sendtime} 祝福发送时间<br/>{$loveurl} 祝福访问地址  </td>
  </tr>
  <tr>
    <td height="30" align="center"></td>
    <td align="left"><input type="submit" id="button2" value="提交" />&nbsp;</td>
  </tr>
</table>
</form>
<?php include atemplate('footer');?>